package org.dromara.patrol.domain.bo;

import io.github.linpeilie.annotations.AutoMapper;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.patrol.domain.PatrolReportDetail;

import java.io.Serial;

/**
 * 巡店管理-巡店报告动态详情业务对象 patrol_report_detail
 *
 * @author samuel
 * @date 2024-03-27
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = PatrolReportDetail.class, reverseConvertGenerate = false)
public class PatrolReportDetailBo extends BaseEntity {

    @Serial
    private static final long serialVersionUID = 2320470525236581971L;
    /**
     * 详情id
     */
    @NotNull(message = "详情id不能为空", groups = { EditGroup.class })
    private Long detailId;

    /**
     * 报告动态详情
     */
    @NotBlank(message = "报告动态详情不能为空", groups = { AddGroup.class, EditGroup.class })
    private Object details;


}
